<?php


namespace App\Dao;

use App\Exceptions\SysExceptions;

/**
 * Class BaseDao
 * @package App\Dao
 * author:fhc
 * desc:基础Dao层
 * created_at: 2020/10/16{
 */
class BaseDao
{
    /**
     * author:fhc
     * desc:错误
     * created_at: 2020/10/16{
     * @param string $msg
     * @param int $code
     * @throws SysExceptions
     */
    public static function error($msg = '',$code = 301){
        throw new SysExceptions($msg,$code);
    }
}
